package model;
import cc.test.bridge.BridgeConstants.State;
import cc.test.bridge.BudgetFactoryInterface;
import cc.test.bridge.BudgetInterface;


public class BudgetFactory implements BudgetFactoryInterface
{

	@Override
	public BudgetInterface create()
	{
		// Create a budget
        Budget budget = new Budget();
        
        // Flag it in the hamper as dirty -- it will be written through
        // on commit
        BridgeHelper.getHamper().put(budget, State.CREATE);
        
        return budget;
	}

}
